I want to create a 'mini-database'. I want to have one file with lots of variables, and be able to take those variables from the file, while also being able to add variables to the file? For example, lets suppose this is the 'mini-db':
hello = ['a', 'b', 'c']
world = ['d', 'e', 'f']
foo = ['g', 'h', 'i']
and from a different file, I would like to say something like:
print MiniDB.hello[0]
So basically access the variable. Also, I would need to write variables INTO the file. so something like this:
MiniDB.bar = ['j', 'k', 'l']
How can I do this?